#include "exceltools.h"
#include "single_split_thread.h"
#include "mult_split_thread.h"
#include <QApplication>
#include <QTextCodec>
#include <QProcess>
#include <QAxWidget>
#include <QSharedPointer>
#include <qtextcodec.h>

int main(int argc, char *argv[])
{

    QApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QApplication a(argc, argv);
    //使用UTF-8时 ，在显示cmd窗口的输出信息时，是乱码，改为GB2312以后，显示正常。
    //QTextCodec *codec=QTextCodec::codecForName("UTF-8");
    // QTextCodec::setCodecForLocale(codec);
   //QTextCodec::setCodecForLocale(QTextCodec::codecForName("GB2312"));
    QTranslator translator;
    bool b = false;
    b = translator.load("./translations/cn.qm");
    qDebug()<<"b"<<b;
    a.installTranslator(&translator);
    ExcelTools excelTools;
    excelTools.show();
    excelTools.mail_info_initialize();
    return a.exec();
}
